a612e937d48ac6e98db5a42ab7730c9c6cdde966,opennms-dao/src/main/java/org/opennms/netmgt/dao/support/PropertiesGraphDao.java,PrefabGraphTypeCallback,reload,#PrefabGraphType#File#,292

Before Change


        public PrefabGraphType reload(PrefabGraphType object, File file) {
            FileInputStream in;
            try {
                in = new FileInputStream(file);
            } catch (FileNotFoundException e) {
                log().error("Could not reload configuration file '"
                            + file.getAbsolutePath()
                            + "' due to FileNotFoundException: " + e,
                            e);
                return null;
            }
            
            PrefabGraphType t;
            try {
                t = createPrefabGraphType(object.getName(), in);
            } catch (IOException e) {
                log().error("Could not reload configuration file '"
                            + file.getAbsolutePath()
                            + "' due to IOException when reading from file: " + e,
                            e);
                return null;
            } catch (DataAccessException e) {
                log().error("Could not reload configuration file '"
                            + file.getAbsolutePath()
                            + "' due to DataAccessException when reading from "
                            + "file: " + e,
                            e);
                return null;
            }
            
            try {
                in.close();
            } catch (IOException e) {
                log().error("Could not reload configuration file '"
                            + file.getAbsolutePath()

After Change


        public PrefabGraphType reload(PrefabGraphType object, Resource resource) {
            InputStream in = null;
            try {
                in = resource.getInputStream();
                return createPrefabGraphType(object.getName(), in);
            } catch (Exception e) {
                log().error("Could not reload configuration '"
                            + resource + "'; nested exception: " + e,